package com.chdwmp.product.mapper;

import com.chdwmp.product.bean.Product;
import com.chdwmp.product.bean.backend.ProductSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: LLL
 * @Date: 2021/3/6 20:53
 * @Description:
 */
@Mapper
public interface ProductMapper {

    int queryProductIsExits(String product_name);

    void addProduct(Product product);

    void updateProduct(Product product);

    void deleteProduct(String id);

    List<Product> queryProductList(ProductSearchVo productSearchVo);

    int queryProductIsExitsForUpdate(@Param("product_name") String product_name, @Param("id")String id);

    int queryTotalCountProduct(ProductSearchVo productSearchVo);
}
